package com.hqyj.controller;

import com.hqyj.pojo.PersonnelTransfer;
import com.hqyj.pojo.TitleInformation;
import com.hqyj.service.TitleInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("TitleInformation")
public class TitleInformationController {
    @Autowired()
    TitleInformationService titleInformationService;

    @RequestMapping("/selectList")
    public HashMap<String,Object> listPage(TitleInformation t){

        return titleInformationService.select(t);
    }
    @RequestMapping("/add")
    public HashMap<String,Object> addPage(TitleInformation t){
        return titleInformationService.add(t);
    }

    @RequestMapping("/del")
    public HashMap<String,Object> delPage(Integer id){
        return titleInformationService.del(id);
    }

    @RequestMapping("/update")
    public HashMap<String,Object> updatePage(TitleInformation t){
        return titleInformationService.update(t);
    }
}
